isAnagram using stringbuilder