strip extra whitespace in page titles

closes #3