added RemoveDuplicateCharacters