Added line strip to loop, updated blank line matching