Add Trim method from the CMS
Merge pull request #8 from wilsonge/trim

Add Trim method from the CMS.