Trim title length if needed in order to fit in terminal size