if (optionArray[i].indexOf('"') != -1) {
if (optionArray[i].indexOf(' ') != -1) {
  public static String joinOptions(String [] optionArray) {    String optionString = "";    for (int i = 0; i < optionArray.length; i++) {      if (optionArray[i].equals("")) {	continue;      }      if (optionArray[i].indexOf('"') != -1) {	optionString += '"' + optionArray[i] + '"';      } else {	optionString += optionArray[i];      }      optionString += " ";    }    return optionString.trim();  }