fixes #497: do not throw plain strings for failed pattern matches
Merge pull request #499 from michaelficarra/GH-497

fixes #497: do not throw plain strings for failed pattern matches