private static String spliceString(String str, int i, String replacement) {
    return spliceString(str, i, 1, replacement);
  }
Escapes the string for AST; doesn't enclose it in quotes, however.
ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java