private String trim(String value){
  if (value != null)   return value.trim();
 else   return value;
}

private String trim ( String value ) { if ( value != null ) return value . trim ( ) ; else return value ; }
trim whitespace . needed , because of different dbms policies on returning trailing whitespace from char ( x ) fields ( postgresql ) or not ( mysql ) .
