code: public static String quote(final String value) {
          if (value == null) {
              return null;
          }
          String result = value;
          if (!result.startsWith("\"")) {
              result = "\"" + result;
          }
          if (!result.endsWith("\"")) {
              result = result + "\"";
          }
          return result;
      }
docs: Quote the given string if needed
  
  @param value The value to quote (e.g. bob)
  @return The quoted string (e.g. "bob")