if (s != null && s.length() != 0) setPropertyOfNode(hostTree, "Description", s);
if (s != null && s.trim().length() != 0) setPropertyOfNode(hostTree, "Description", s.trim());
  public void setHostDescription() {    String description = getPropertyOfNode(hostTree, "Description");    String s = (String)JOptionPane.showInputDialog(this,                                           "Enter Host Description",                                           "Host Description",                                           JOptionPane.QUESTION_MESSAGE,                                           null, null, description);    if (s != null && s.length() != 0)       setPropertyOfNode(hostTree, "Description", s);  }