# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FFsKnnCG6CAfaCItWL4Ap%2F0.png?alt=media)

**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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FQZ9CNokn5gdnJpolWwNU%2F1.png?alt=media)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F9qRmGamtLCT3oGzrp5uy%2F2.png?alt=media)
