function fieldClean(&$str) { if ($str === null) { return null; } $str = str_replace('"', '""', $str); return $str; }