strip title of extra whitespace