add subsection titles and remove whitespace