Add a comment to the trim fix to explain the tricky logic.