Support for Trim functions

Support for Trim functions