Reference: Java String Methods
length() returns the number of characters in a String
charAt(n) returns the character at index n
indexOf(d) returns the index of the first occurrence of d in the String
substring(a, b) returns the sequence of characters at index a up to b
substring(c) returns the sequence of characters from index c through the Strings end