check if argument is string in isStringAndMatchesPattern
better readable string check
Merge pull request #539 from vaidasm/hotfix/is-string-check

check if argument is string in isStringAndMatchesPattern