Function to determine if str arg is anagram of str array