Determine whether a string has unique characters