Anagram bendwise