# SplitString (String str, String separator1, String separator2)

| Name                     | *SplitString*                                                             |
| ------------------------ | ------------------------------------------------------------------------- |
| Applicable To (DataType) | String                                                                    |
| Purpose                  | To split a string into multiple parts.                                    |
| Description              | Splits a string into multiple parts along the specified separator string. |
| Return Type              | String                                                                    |
| Syntax                   | str \[System.String] – string to split.                                   |
|                          | separator1 \[System.String] – separator string 1 for parsing the string.  |
|                          | separator2 \[System.String] – separator string 2 for parsing the string.  |

![properties](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/nyRD8Xma6UzhKnR2snmo/properties.png)

## Example

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

Where,

*str* = flourine-chlorine-bromine-iodine-astatine-helium-neon-argon,krypton,xenon

*separator1* = -

*separator2* = ,

![dataflow](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/e9x84ZKEdxm5EokgXyAb/dataflow.png)

Right-click on the function transformation object and select *Preview Output*. You can see that Astera Data Stack has split the string into 10 parts based on the given separators.

![output](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/kVHW2KOFpSoGMf72lcer/output.png)
