# Debug Node - String output - what does the arrow mean?

**URL:** <https://discourse.nodered.org/t/debug-node-string-output-what-does-the-arrow-mean/69353>\
**Category:** General\
**Created:** [21 October 2022 01:40 UTC](https://discourse.nodered.org/t/debug-node-string-output-what-does-the-arrow-mean/69353 "2022-10-21T01:40:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lewi0231](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lewi0231/32/67540_2.png) [@lewi0231](https://discourse.nodered.org/u/lewi0231)\
**Post date:** [21 October 2022 01:40 UTC](https://discourse.nodered.org/t/debug-node-string-output-what-does-the-arrow-mean/69353/1 "2022-10-21T01:40:19Z")

</div>

I have a situation where I am trying to run a String through a service (not important which). Specifically, I am attempting to dynamically apply a String to msg.payload and then the service reads this (and does something) - however the service doesn't like the format when I do this dynamically (e.g., msg.payload.body). The crux of the problem seems to be my understanding of Strings in Node-Red, i think. See below the two different outputs I get (one with an arrow drop down) and one without. Is someone able to explain to me what the difference is?

![stringArrow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/4/4451936cac3b7dea098ed3d15014d085357b4c27.jpeg)  
 ![stringWithout](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/1/d14a725419ae54b04d81aef8a5c974bf4ecdef14.jpeg)

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [21 October 2022 05:09 UTC](https://discourse.nodered.org/t/debug-node-string-output-what-does-the-arrow-mean/69353/2 "2022-10-21T05:09:43Z")

</div>

The arrow will be shown when there are linebreaks in the string, it acts like "expand".

They have no effect on the actual string, however, it will also be shown if the string begins with a linebreak, could this be the issue you are facing ?

---

<div class="post-metadata">

**Author:** ![lewi0231](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lewi0231/32/67540_2.png) [@lewi0231](https://discourse.nodered.org/u/lewi0231)\
**Post date:** [21 October 2022 05:43 UTC](https://discourse.nodered.org/t/debug-node-string-output-what-does-the-arrow-mean/69353/3 "2022-10-21T05:43:04Z")

</div>

Thanks for that, I think that's it. I think if I can trim the start and end of the string it should work. Cheers,

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [21 October 2022 05:46 UTC](https://discourse.nodered.org/t/debug-node-string-output-what-does-the-arrow-mean/69353/4 "2022-10-21T05:46:27Z")

</div>

You can add a function node;

```auto
msg.payload.trim();
return msg

```

---

<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:** [4 November 2022 05:47 UTC](https://discourse.nodered.org/t/debug-node-string-output-what-does-the-arrow-mean/69353/5 "2022-11-04T05:47:03Z")

</div>

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