Look at the String class. It has several methods that could be used to look at individual characters in the String.
Use a loop to get each character one at a time from the String.
Use an if...