# Broken strings patching back together

**URL:** <https://discourse.nodered.org/t/broken-strings-patching-back-together/71554>\
**Category:** General\
**Created:** [1 December 2022 13:03 UTC](https://discourse.nodered.org/t/broken-strings-patching-back-together/71554 "2022-12-01T13:03:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PiMo131](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pimo131/32/34978_2.png) [@PiMo131](https://discourse.nodered.org/u/PiMo131)\
**Post date:** [1 December 2022 13:03 UTC](https://discourse.nodered.org/t/broken-strings-patching-back-together/71554/1 "2022-12-01T13:03:49Z")

</div>

Hi everyone, I am having an issue with strings that are coming from a TCP request node which is set to 'Keep open' I need this in order to be able to send and receive data.

I am getting a buffer which I am converting to a string. But the string is not split properly. So my msg.payload come in in broken parts. Is there any way to re-attach them and split them on the character /r ?

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/9/b9e460e76bf375527c83d1b6b4fbc3f288f4d174.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:** [1 December 2022 14:06 UTC](https://discourse.nodered.org/t/broken-strings-patching-back-together/71554/2 "2022-12-01T14:06:06Z")

</div>

Send them into a split node set the handle strings as a stream.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/f/2f09c7fc1a95a362cf68181f95aa327656185d34.png)

---

<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:** [30 January 2023 14:06 UTC](https://discourse.nodered.org/t/broken-strings-patching-back-together/71554/3 "2023-01-30T14:06:33Z")

</div>

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