transpose string and regex in match call

String#match(String) invokes Regexp#match(String), so save the extra step (and take a little bit of speed and memory back)