Add trim script.
Add test suite.