Added support for Trim.