Revert "commented out trim method"

This reverts commit 5f0006e2d6dedf2e3d210308bb9ee79541dc1023.