remove duplicates from string