Where possible:

preg_replace -> str_replace
" -> '