Weird cookie problem?

hey

    <?= var_dump("dark"); ?>                                                             #=> string(4) "dark"
    <?= var_dump($this->cookies->get('theme')->getValue()); ?>                           #=> string(32) "dark"
    <?= var_dump($this->cookies->get('theme')->getValue() == 'dark'); ?>                 #=> bool(false)

Why the hell does var_dump($this->cookies->get(&#039;theme&#039;)->getValue()); return a string "dark" with a length of 32?

Try:

    <? var_dump(htmlentities($this->cookies->get('theme')->getValue())); ?>