Truncate long titles and add a tooltip