Change strptime::match_strs to use borrowed rather than owned strings

Also modernise a few constructs in match_strs().