Use correct token to avoid intendation to be lost.

With next, all white-space before (indentation in this case) gets removed, as well.
We need to use $i which points to the beginning of the row.