Simplify the validation of strings is ok