add truncate filter with tests
Merge pull request #58 from devoidfury/truncate

Truncate filter