public static String smartQuote(String s){
  if (s.contains(" ")) {
    return dumbQuote(s);
  }
 else {
    return s;
  }
}

public static String smartQuote ( String s ) { if ( s . contains ( " " ) ) { return dumbQuote ( s ) ; } else { return s ; } }
quotes string when spaces are detected
