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

Also modernise a few constructs in match_strs().
auto merge of #16163 : anguslees/rust/strptime-str, r=alexcrichton

Also modernise a few constructs in match_strs().