str: New str_matchx function optionally reports possible prefix.