code: public static String stripDelimiters(final String value) {
          if (value != null && value.length() > 1) {
              if (value.charAt(0) == value.charAt(value.length() - 1)
                      && (value.charAt(0) == '\'')) {
                  return value.substring(1, value.length() - 1);
              }
              if (value.charAt(0) == value.charAt(value.length() - 1)
                      && (value.charAt(0) == '\"')) {
                  return value.substring(1, value.length() - 1);
              }
          }
          return value;
      }
docs: The parser does not strip delimiters from literal strings so we
  do it here if necessary.
  @param value a potential literal string
  @return the literal without delimiters