fix trailing space for multi-line titles