Ok, possibly better performance came to my mind as well. But this is not necessarily the case as `"'" + _.replace("'","''") + "'"` would allow for better optimization by the vm if it does that. In any case the effect would probably be neglectable as this is only used in insert statements and does not happen in larger quantities.