input: Write a function to check if two words are anagrams.
  assert anagramCheck('listen', 'silent') == True
  assert anagramCheck('hello', 'billion') == False
  assert anagramCheck('evil', 'vile') == True
  assert anagramCheck('rat', 'art') == True
  assert anagramCheck('dormitory', 'dirty room') == True
output: def anagramCheck(word1, word2):
      word1 = word1.replace(" ", "").lower()
      word2 = word2.replace(" ", "").lower()
      return sorted(word1) == sorted(word2)