index: remove trailing whitespaces

or at least those which I noticed. I hope I got all of those.