Refactored into truncate method to avoid semi-repetition.

I don't think that's any more readable though.