input: Write a python function to check if a value is a string and raise a custom exception if it's not.
  assert check_value("hello") is None
  assert check_value(123)=="Invalid data type"
  assert check_value([1,2,3])=="Invalid data type"
output: def check_value(value):
      if not isinstance(value, str):
          return "Invalid data type"