trip any leading/trailing whitespace in titles

whitespace formatting's used for the index table, as it gets copy/pasted
into other things for which it matters (I think.)