String (final String value) { String escapedString = StringUtil.replace(value, "\\", "\\\\"); if (value.contains("'")) { return "\"" + processNonPrintableChars(escapedString) + "\""; } else { return "'" + processNonPrintableChars(escapedString) + '\''; } }