input: from typing import List
  
  def correct_spacing(strings: List[str]) -> List[str]:
      """
      Correctly format each string in the list by ensuring there is no
      trailing whitespace at the beginning and end of each string.
      >>> correct_spacing(["  apple", "banana  ", "  orange  "])
      ["apple", "banana", "orange"]
      """
output:     return [s.strip() for s in strings]