Remove empty line
Factor out space skipping