Simplify the validation of strings is ok
Merge pull request #201 from alexandrobs/issue-195

Simplify the validation of strings is ok