Make sure shortening the text is actually needed

Adding the ellipsis should actually make the text shorter
instead of just replacing the end of the text.