fixes whitespace at end of titles