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