move external exports to bottom of import section and strip whitespace from the page title