# What is this return character?

**URL:** https://discourse.nodered.org/t/what-is-this-return-character/5768
**Category:** General
**Created:** [13 December 2018 18:38 UTC](https://discourse.nodered.org/t/what-is-this-return-character/5768 "2018-12-13T18:38:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dakure](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dakure](https://discourse.nodered.org/u/dakure)
#### Post date: [13 December 2018 18:38 UTC](https://discourse.nodered.org/t/what-is-this-return-character/5768/1 "2018-12-13T18:38:31Z")

</div>

I am using a relay board of sequentmicrosystems wich work with commands. All the values this commands get have a return character (↵) after the expected value like you can see in the first debug of the attached image.  
Trying to work with this numbers this return symbol is giving me lot of problems. Why is this character there and how I could get rid of it?  
 ![05%20PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/b6b24d162dd09deb1468ecde9540ac98b0023414.png)

Edit: I am using the exec node to talk to the relay board.

Thank you all

---

<div class="post-metadata">

### Author: ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)
#### Post date: [13 December 2018 18:48 UTC](https://discourse.nodered.org/t/what-is-this-return-character/5768/2 "2018-12-13T18:48:21Z")

</div>

Many ways to do it, but as I see you are expecting the data as an integer then `parseInt(msg.payload)` would be simple solution.

---

<div class="post-metadata">

### Author: ![dakure](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dakure](https://discourse.nodered.org/u/dakure)
#### Post date: [13 December 2018 19:49 UTC](https://discourse.nodered.org/t/what-is-this-return-character/5768/3 "2018-12-13T19:49:06Z")

</div>

Thank you so much!  
Is there a way can I return the value in 8 binary using parseInt?

---

<div class="post-metadata">

### Author: ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)
#### Post date: [13 December 2018 20:24 UTC](https://discourse.nodered.org/t/what-is-this-return-character/5768/4 "2018-12-13T20:24:18Z")

</div>

You may want to have a look on [this thread](https://discourse.nodered.org/t/help-with-a-function-node/4836/13) explaining the use of the string method trim() to cleanup trailing (and leading) characteres from a string.

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [13 December 2018 20:26 UTC](https://discourse.nodered.org/t/what-is-this-return-character/5768/5 "2018-12-13T20:26:24Z")

</div>

A quick google should find a list of parseInt options
