Grails 2.3.0 introduced couple of new properties to handle binding of Strings. The 2 new config properties which have been added are “trimStrings” and “convertEmptyStringsToNull”. Keep this fact in mind if you are upgrading from Grails 2.2.x to Grails 2.3.0 these 2 properties will come into picture automatically and if you don’t want this to happen then you can explicitly turn them “off” and your code won’t be affected. By default both of these properties are set to true. This is how you use them inside your Config.groovy

grails.databinding.trimStrings = false	// This is set to 'true' by default

If ‘trimStrings’ is set to to ‘true’ then all of the extra spaces in beginning and the end of string will be automatically trimmed.

grails.databinding.convertEmptyStringsToNull = false	// This is set to 'true' by default

If ‘convertEmptyStringsToNull’ is set to to ‘true’ then all empty string received from gsp page will be saved as NULL in database.