input: Write a python function to strip whitespace from string values in a list of dictionaries.
  assert strip_whitespace_from_data([{'name': 'John Doe   ', 'age': 34}, {'name': 'Tim Smith     ', 'age': 14}]) == [{'name': 'John Doe', 'age': 34}, {'name': 'Tim Smith', 'age': 14}]
  assert strip_whitespace_from_data([{'city': '  New York', 'population': 8000000}, {'city': 'Los Angeles ', 'population': 4000000}]) == [{'city': 'New York', 'population': 8000000}, {'city': 'Los Angeles', 'population': 4000000}]
  assert strip_whitespace_from_data([{'item': '   Apple   ', 'price': 1.2}, {'item': 'Banana', 'price': 0.5}]) == [{'item': 'Apple', 'price': 1.2}, {'item': 'Banana', 'price': 0.5}]
output: def strip_whitespace_from_data(data):
      for d in data:
          for key in d:
              if isinstance(d[key], str):
                  d[key] = d[key].strip()
      return data