Judge characters in a string is unique