Anagram pruner