better parse the matched string