strip out empty lines