let s2 = '' If the string starts with whitespace followed by a newline, it's stripped, but that's not the case here. Two spaces are stripped because of the " " at the start. ''; in s2