Anagram presolving