anagram.rb checks if two strings are anagrams