# 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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/properties%20\(11\).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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/dataflow%20\(12\).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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/output%20\(8\).png)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/astera-data-stack-v8/functions/string/splitstring-string-str-string-separator1-string-separator2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
