remove duplicate characters in a string java