Shortens text by splitting by space, removing tokens from the middle and replacing them with [...]
[...]
The input text
Count of space separated tokens to keep at the beginning and end of the text
The full text if shorter than tokens to keep for beginning plus end, otherwise the first x tokens, followed by [...] and the last x tokens
Shortens text by splitting by space, removing tokens from the middle and replacing them with
[...]