# Concatenate (String)

| **Name**    | ***Concatenate***                                                       |
| ----------- | ----------------------------------------------------------------------- |
| Syntax      | Concatenate (String str1, String str2)                                  |
| Purpose     | To concatenate two strings and return the result.                       |
| Description | Returns the concatenated string.                                        |
| Return Type | String                                                                  |
| Parameters  | <p>Str1 \[System.String] – First string</p><p>Str2 \[System.String]</p> |

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(54\).png)

**Example**

In this example, we are passing the required parameters to the function transformation object using a *Variables* object.

Where,

*Str1 =* Hello

*Str2* = World

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(55\).png)

Right-click on the function transformation object and select *Preview Output.* You can see that Astera Data Stack has returned the a concatenated string using variables *str1* and *str2.*

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20\(55\).png)
