Implement poor man's truncation since underlying library does not seem to have it