input: Write a function to remove all the whitespaces from each string in a given list of strings. The function should return a new list where each string is stripped of any leading or trailing whitespaces.
  
  def remove_whitespace(word_list):
      return [word.strip() for word in word_list]
  
  assert remove_whitespace(['Hello  World  ', 'Hi  there', 'Good  Morning'])==['HelloWorld', 'Hithere', 'GoodMorning']
  assert remove_whitespace(['  This  ', ' is  ', '  a test '])==['This', 'is', 'atest']
  assert remove_whitespace([''])==['']
  assert remove_whitespace(['  '])==['']
  assert remove_whitespace([])==[]
output: def remove_whitespace(word_list):
      return [word.replace(" ", "") for word in word_list]