Anagram concatenating