Validate the input data.
Usage
validate(data)
data
The data string to validate.
True if the data is valid.