Use filter in place of foldr, and normalize case in anagram exercise.