Only strip the newline character at the end of the lines that we're considering