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

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

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