fix whitespace removal in head and title