Does is_state_attr not like apostrophes?

I have a bit of jinja that isn’t working, despite the fact I’ve checked and place_name IS Mary and Hank’s Cookshop it just doesn’t match. Is it the apostrophe?

{% elif is_state_attr("sensor.steve","place_name ", "Mary and Hank's Cookshop") %}
 Work

Thanks

try escaping the quote with a backslash:

{% elif is_state_attr("sensor.steve","place_name", "Mary and Hank\'s Cookshop") %}
 Work

also I saw an extra space after place_name that could maybe cause issues so I removed it too.