test for checking if string has unique characters