Changed preg_replace function with str_replace.