first version of sentenceAnagrams