Add truncate & truncateFromCenter with test

This should be better right now :smile: 
I was just reviewing the Rails source code for `truncate()` and they use the word `omission` instead of `separator`. I think that's a better variable name. Let's rename it here and for `truncateFromCenter()` too.