Check if multiple strings are anagrams