Anagram canonizing