input: Write a python function to check if two sentences are anagrams, considering spaces and capitalization.
  assert is_anagram("Listen", "Silent") == True
  assert is_anagram("Hello World", "Dellor Wlh o") == True
  assert is_anagram("Anagram", "Nagaram") == True
  assert is_anagram("test", "tset") == True
  assert is_anagram("test", "tstea") == False
output: def is_anagram(sentence1, sentence2):
      sentence1_cleaned = sorted(sentence1.replace(" ", "").lower())
      sentence2_cleaned = sorted(sentence2.replace(" ", "").lower())
      return sentence1_cleaned == sentence2_cleaned