A simpler way would be to look at the characters one by one using a String class method to get the character. Then use some of the Character class's methods to test the characters.

Another...