Add string support to the validate’s if and unless option.
Merge pull request #1012 from jouh/validate-if-and-unless-with-strings

String support for the validate’s if and unless option.