check if a string has all unique character