Fix trim method