code: def trim(value):
          '''
          Raise an exception if value is empty. Otherwise strip it down.
          :param value:
          :return:
          '''
          value = (value or '').strip()
          if not value:
              raise CommandExecutionError("Empty value during sanitation")
  
          return six.text_type(valuef trim(value):
          '''
          Raise an exception if value is empty. Otherwise strip it down.
          :param value:
          :return:
          '''
          value = (value or '').strip()
          if not value:
              raise CommandExecutionError("Empty value during sanitation")
  
          return six.text_type(value)
docs: Raise an exception if value is empty. Otherwise strip it down.
          :param value:
          :return: