Update edge cases in coffeescript/anagram