This is a hotfix for TextHelper which seems to have gone wrong in a merge. tail() is missing completly and the docs for truncate() are the ones for tail(). This fixes it.
Correct documentation.
Merge pull request #3432 from dereuromark/master-hotfix

Hotfix - For TextHelper