# Split string with substring() or slice in node-red on hassio

**URL:** <https://discourse.nodered.org/t/split-string-with-substring-or-slice-in-node-red-on-hassio/19426>\
**Category:** General\
**Created:** [21 December 2019 16:03 UTC](https://discourse.nodered.org/t/split-string-with-substring-or-slice-in-node-red-on-hassio/19426 "2019-12-21T16:03:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yortz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yortz/32/9480_2.png) [@Yortz](https://discourse.nodered.org/u/Yortz)\
**Post date:** [21 December 2019 16:03 UTC](https://discourse.nodered.org/t/split-string-with-substring-or-slice-in-node-red-on-hassio/19426/1 "2019-12-21T16:03:26Z")

</div>

Hi, I have a question. I can’t split or slice string in node-red that on hassio  
but I tried on node-red run locally on my computer it’s work  
How to split string in node-red running on hassio? Thanks:)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/a4f47fd034db0c1c4cc1c659b8fa085ed5a732d2.png)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 December 2019 16:25 UTC](https://discourse.nodered.org/t/split-string-with-substring-or-slice-in-node-red-on-hassio/19426/2 "2019-12-21T16:25:46Z")

</div>

don't know - maybe ask on the hassio forum ?

> **[Home Assistant Community](https://community.home-assistant.io/)**
>
> Open source home automation that puts local control and privacy first.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [21 December 2019 18:53 UTC](https://discourse.nodered.org/t/split-string-with-substring-or-slice-in-node-red-on-hassio/19426/3 "2019-12-21T18:53:45Z")

</div>

Can you share exactly what the message looks like in both cases? It isn't clear what property you are trying to split in the two screen shots.
