Fix stripping eol blank line function