trim: added debug output.

* Can you give it another try, Alexander? The outcome won't change, I'm afraid,
  but maybe we'll know some more afterwards.