let s7 = '' Also note that if the last line (just before the closing ' ') consists only of whitespace, it's ignored. But here there is some non-whitespace stuff, so the line isn't removed. ''; in s7