Anagram output properly formatted