protected String checkForTrim ( String s , PropertyDescriptor prop ) { return trimmableProperty ( prop ) ? s . trim ( ) : s ; }
Returns the trimmed value of the string only if the property the string is describing should be trimmed to be converted to that type .