wiki: trim trailing spaces for heading