Shorten the text so as to make it fit in the UI