Anagram sanitization