def validate_len ( self, object, name, value ):
        try:
            value = strx( value )
            if self.minlen <= len( value ) <= self.maxlen:
                return value
        except:
            pass

        self.error( object, name, value )
Validates that the value is a valid string in the specified length
dataset/ETHPy150Open enthought/traits/traits/trait_types.py/String.validate_len