Some window titles didn't fit on the taskbar buttons, so I needed a way to collapse the remaining part of the text into "..."