Where in the API is isDigit and isLetter defined for String? Perhaps you are thinking of the Character classes static methods.