• "Bread and Beard"

Question related to mission Moria Doors

 

My program results in "Bread" But on check it's "Beard", But the value is equal in both, so why should the output be "Beard" not "Bread"? what's the rule here? Thank you.