Anagram inverting