public static String noQuote(String input){
  if (input.contains(" ")) {
    throw new IllegalArgumentException("Cannot contain whitespace: '" + input + "'");
  }
 else {
    return input;
  }
}

public static String noQuote ( String input ) { if ( input . contains ( " " ) ) { throw new IllegalArgumentException ( "Cannot contain whitespace: '" + input + "'" ) ; } else { return input ; } }
throws an exception if the given input property contains whitespace .
