# How to set context variables containing spaces?

**URL:** <https://discourse.nodered.org/t/how-to-set-context-variables-containing-spaces/14576>\
**Category:** General\
**Created:** [21 August 2019 02:26 UTC](https://discourse.nodered.org/t/how-to-set-context-variables-containing-spaces/14576 "2019-08-21T02:26:23Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [14 December 2022 14:24 UTC](https://discourse.nodered.org/t/how-to-set-context-variables-containing-spaces/14576/21 "2022-12-14T14:24:05Z")

</div>

Would it not be better to change the friendly names so they don't contain special characters? Otherwise, if the device fails, you will have to change all your flows when you fit a new device, rather than just configuring the original friendly name in Zigbee2MQTT.

---

_[View the full topic](https://discourse.nodered.org/t/how-to-set-context-variables-containing-spaces/14576)._
