Validate a string value.
Usage
validate(value)
value: str
The value to validate.
bool
True if the value is valid.