Replaced preg_replace with str_replace.