remove trailing dashes from titles