Add truncate & truncateFromCenter with test

This should be better right now :smile: 
Same thing here, align assignments.