Determines whether two strings are weak anagrams of each other