added function to determine if a string has all unique characters