verify the argument of String#=~
Merge pull request #1616 from h2so5/verify-string-match

verify the argument of String#=~