code: def is_non_empty_string(input_string):
      
      try:
          if not input_string.strip():
              raise ValueError()
      except AttributeError as error:
          raise TypeError(error)
  
      return True
docs: Validate if non empty string
  
      :param input_string: Input is a *str*.
      :return: True if input is string and non empty.
         Raise :exc:`Exception` otherwise.