added remove_duplicate_characters