truncate method
Merge pull request #1 from runk/truncate

truncate method