cleanup str_replace / preg_replace