input: Write a python function to remove all occurrences of a word from an input string.
  assert remove_word("This is a sample string with words to remove", "to") == "This is a sample string with words remove"
  assert remove_word("the quick brown fox jumps over the lazy dog", "the") == "quick brown fox jumps over lazy dog"
  assert remove_word("hello world hello", "hello") == "world"
  assert remove_word("repeat repeat repeat", "repeat") == ""
output: def remove_word(input_string, word_to_remove):
      words = input_string.split()
      filtered_words = [word for word in words if word != word_to_remove]
      return ' '.join(filtered_words)