updated formatTitle()