Add failure message when testing whether a string matches a regex