truncate items in the menu that are too long