Check for unique characters in a string