Add truncate & truncateFromCenter with test

This should be better right now :smile: 
Can we align these assignments?

```
middle         = (position...
separatorStart = Math...
```