Shorten message to fit into the window