anagram perf fix