I know that I can use .contains() to check if a string has a particular character, but I want to check if a string has only one of the character.
For example, if I check for 'a', I want it to return true for "abb" but false for "aabb"
How do I do that?