Update common.php

update match_string function