changed smartTrim example