Added trim support.