Standard LibraryTypesstringMethodsfrontOn this pagefront Method of string. front() -> string Returns the first character in the string. Throws an exception if the string is empty.