Replace preg_replace with str_replace