Is there an efficient way to do multiple replacements? val = val.replace("'","''")\ .replace("\\","\\\\\\\\\\\\\\\\")\ .replace(chr(13)+chr(10),"\\\\\\\\n")\ .replace(chr(10),"\\\\\\\\n")\ .replace(chr(13),"\\\\\\\\n")\ .replace('"','\\\\"') Or is this the best way to do it? Best, Clark