add function to determine if input string is unique