Add truncate & truncateFromCenter with test

This should be better right now :smile: 
I'm using the Alignment plugin with Sublime Text, it seems doesn't indent like this.