# concatenate broken?

**URL:** <https://forum.katalon.com/t/concatenate-broken/6472>\
**Category:** Miscellaneous\
**Tags:** web-testing, katalon-studio\
**Created:** [June 2, 2017, 5:24am UTC](https://forum.katalon.com/t/concatenate-broken/6472 "2017-06-02T05:24:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joel\_Brent](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joel_brent/32/23869_2.png) [@Joel\_Brent](https://forum.katalon.com/u/Joel_Brent)\
**Post date:** [June 2, 2017, 5:24am UTC](https://forum.katalon.com/t/concatenate-broken/6472/1 "2017-06-02T05:24:27Z")

</div>

Hi,

I depend on the concatenate function, but it seems to be broken. Only the first of the string of the list is recorded. For example, using your site’s example, you can see that this doesn’t returned the expected value:

x = WebUI.concatenate((([‘Katalon’, ‘Automation Tool’]) as String))

println(x);

---

<div class="post-metadata">

**Author:** ![Joel\_Brent](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/joel_brent/32/23869_2.png) [@Joel\_Brent](https://forum.katalon.com/u/Joel_Brent)\
**Post date:** [June 2, 2017, 6:04pm UTC](https://forum.katalon.com/t/concatenate-broken/6472/2 "2017-06-02T18:04:09Z")

</div>

That worked! Thanks for the fast response!

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [June 2, 2017, 6:18am UTC](https://forum.katalon.com/t/concatenate-broken/6472/3 "2017-06-02T06:18:55Z")

</div>

Hi there,

We will fix that. However the same keyword with Failure Handling option will work, e.g:

`WebUI.concatenate(['Katalon', 'Automation Tool'] as String[], FailureHandling.STOP_ON_FAILURE)`

Can you add that option to your script?

---

<div class="post-metadata">

**Author:** ![John\_Monteith](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@John\_Monteith](https://forum.katalon.com/u/John_Monteith)\
**Post date:** [February 2, 2019, 5:28pm UTC](https://forum.katalon.com/t/concatenate-broken/6472/4 "2019-02-02T17:28:38Z")

</div>

This worked for me using variables. For example, with String y = ‘Hello’ and String z = ‘World’, I was able to do x = WebUI.concatenate([y, z] as String[], FailureHandling.STOP\_ON\_FAILURE) to produce HelloWorld

---

<div class="post-metadata">

**Author:** ![Timo\_Kuisma](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@Timo\_Kuisma](https://forum.katalon.com/u/Timo_Kuisma)\
**Post date:** [February 8, 2019, 8:30pm UTC](https://forum.katalon.com/t/concatenate-broken/6472/5 "2019-02-08T20:30:27Z")

</div>

hi,

```
why have to use concatenate method to add two or more strings
just use:
String one = "one";
String two = "two";
String three = one+two;
println three --> onetwo
```
