Replacing simple preg_match with less expensive strpos.