I'm lost. Don't see the issue, unless it is that you don't want to revisit and update old UDFs. The UDF (in my opinion) should be written to support the NoVarInStrings option. Then whether or not the script uses it, the UDF would work. Am I missing something here?