Code to check for anagram strings - works good