# == does not work with string

**URL:** <https://discourse.nodered.org/t/does-not-work-with-string/62108>\
**Category:** General\
**Created:** [3 May 2022 10:13 UTC](https://discourse.nodered.org/t/does-not-work-with-string/62108 "2022-05-03T10:13:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giu-seppe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/giu-seppe/32/40489_2.png) [@Giu-seppe](https://discourse.nodered.org/u/Giu-seppe)\
**Post date:** [3 May 2022 10:13 UTC](https://discourse.nodered.org/t/does-not-work-with-string/62108/1 "2022-05-03T10:13:00Z")

</div>

Hi all,  
someone can tell me why these string are not equal?

 ![2022-05-03 12_07_18-Windows7x64TIA15 - VMware Workstation 16 Player (Non-commercial use only)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8da15a3a266c86e85f5bfd6f478c5ac4889e2d4a.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [3 May 2022 10:53 UTC](https://discourse.nodered.org/t/does-not-work-with-string/62108/2 "2022-05-03T10:53:14Z")

</div>

Try removing `+ '\n'`

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/e/5ec41d78ae9fd4fe7b41d642c64f8db01389a1ef.png)

* * *

PS, in future, please post code as text as it is harder to work with code in an image.

---

<div class="post-metadata">

**Author:** ![Giu-seppe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/giu-seppe/32/40489_2.png) [@Giu-seppe](https://discourse.nodered.org/u/Giu-seppe)\
**Post date:** [4 May 2022 13:49 UTC](https://discourse.nodered.org/t/does-not-work-with-string/62108/3 "2022-05-04T13:49:26Z")

</div>

Doesn't works

it worked with this

```auto
        DownloadedFirstRow = DownloadedFirstRow.slice(0,-1);

```

To work so I also removed "+ '\n' "

PS, in the next post i will post also the text sorry

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 July 2022 13:50 UTC](https://discourse.nodered.org/t/does-not-work-with-string/62108/4 "2022-07-03T13:50:23Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
