tests text files to see if the strings are anagrams