Fixed bug with Trim.