Remove the white spaces until the first new line
" \n\n\n".stripBeginToken.should.equal("\n\n"); " \r\n\r\n\r\n".stripBeginToken.should.equal("\r\n\r\n"); " a \n\n\n".stripBeginToken.should.equal(" a \n\n\n"); " b \r\n\r\n\r\n".stripBeginToken.should.equal(" b \r\n\r\n\r\n"); "\ntest\n".stripBeginToken.should.equal("test\n"); " ".stripBeginToken.should.equal(" ");