Remove duplicates form a string