Code to check if two strings are anagrams