fix preg_replace is deprecated PHP 5.5