public String cleanTextValue(String text){
  if (text != null) {
    return text.trim();
  }
 else {
    return text;
  }
}

public String cleanTextValue ( String text ) { if ( text != null ) { return text . trim ( ) ; } else { return text ; } }
abstracted clean method , should be called for individual text values . < p > this should be applied to all text values before passed to ftl , but is also available to ftl .
