input: Write a function to check if two strings are anagrams.
  assert is_anagram("listen", "silent") == True
  assert is_anagram("Hello", "Olelh!") == True
  assert is_anagram("Dormitory", "Dirty room") == True
  assert is_anagram("The eyes", "They see") == True
  assert is_anagram("Astronomer", "Moon starer") == True
  assert is_anagram("Python", "Java") == False
output: def is_anagram(str1, str2):
      import re
      str1 = re.sub(r'\W+', '', str1).lower()
      str2 = re.sub(r'\W+', '', str2).lower()
      return sorted(str1) == sorted(str2)