trim displayed titles