1.1 detect duplicate characters in string