def _validateString(self, value):
        if value is None:
            value = ''
        if not isinstance(value, six.string_types):
            value = str(value)
        return value.strip()
Make sure a value is a string and is stripped of whitespace.
dataset/ETHPy150Open girder/girder/girder/models/item.py/Item._validateString