Anagram assignment