add trim method