public function checkIsString($value = false, $expected = false)
    {
        if (!is_string($this->token) || ($value && ($this->token != $value))) {
            $this->bailUnexpectedToken($expected);
        }
    }