# I want to print a row of data side by side

**URL:** <https://forum.robusta.ai/t/i-want-to-print-a-row-of-data-side-by-side/228>\
**Category:** Get Help\
**Created:** [August 17, 2022, 1:52pm UTC](https://forum.robusta.ai/t/i-want-to-print-a-row-of-data-side-by-side/228 "2022-08-17T13:52:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SerdarPrabhu](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@SerdarPrabhu](https://forum.robusta.ai/u/SerdarPrabhu)\
**Post date:** [August 17, 2022, 1:52pm UTC](https://forum.robusta.ai/t/i-want-to-print-a-row-of-data-side-by-side/228/1 "2022-08-17T13:52:20Z")

</div>

I want to print a row of data side by side, how can I do this?

Received data:  
‘5252-103  
4542776  
8120028’.

---

<div class="post-metadata">

**Author:** ![ilayda.ipar](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robusta.ai/ilayda.ipar/32/56_2.png) [@ilayda.ipar](https://forum.robusta.ai/u/ilayda.ipar)\
**Post date:** [August 17, 2022, 1:56pm UTC](https://forum.robusta.ai/t/i-want-to-print-a-row-of-data-side-by-side/228/2 "2022-08-17T13:56:55Z")

</div>

Hi @SerdarPrabhu

You can solve the problem by using the /n character in the script component. The code is given below.

```auto
var str = execution.getVariable("str");
var newStr = str.replace(/\n/g, " ");

execution.setVariable("newStr",newStr);

```

Result : 5252-103 4542776 8120028
