Check whether a string has all unique characters.