Fixed TrimLines when the indentation is not valid (empty lines contains ...

...less spaces or tabs than the first line)