private function sanitize() {
        $this->stream = substr($this->stream, $this->cursor);

        // At end of string create a new one
        if($this->stream === false) $this->stream = "";

        // Set brackets back to defaults.
        $this->openingBrackets = $this->closingBrackets = 0;

        // reset cursor. Moving it to where we left off
        // Before we cut down the string size.
        $this->cursor = 0;
    }