remove duplicates using string and charAt