Check whether the given text is valid.
True if the string contains only defined characters, false otherwise.
The text.