# String Manipulation

For string manipulation, you have following operations -&#x20;

### 1. Calculate Length Of String -&#x20;

By using this manipulation, you will be able to calculate the length of the string. For that you can provide either the input as a flow variable (which contains string whose value is to be find) or can enter the string and further can enter the flow variable in which you want to save the length of the string.

![](https://285793208-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LTfGJN4r0uAh7HIsQzW%2F-MCvFgqOn5O7wxLOu9VQ%2F-MCvGgfGDOd8vIyAZCaS%2Fpicture5.png?alt=media\&token=772385dd-bfe9-4834-859d-2b2c590556c5)

### 2. Concatenate Strings

This operation helps to join multiple strings. You can add as many number of strings you want to concatenate by clicking on 'add input'. You can enter input as variable or can directly enter the string.

You can also see the preview of the concatenated string as shown.

![](https://285793208-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LTfGJN4r0uAh7HIsQzW%2F-MCvFgqOn5O7wxLOu9VQ%2F-MCvIII3Csg-zLzAAxBD%2Fpicture5.png?alt=media\&token=6d7bc38a-628f-4a17-aa7f-10731d7bf594)

### 3. Convert String To Lowercase

This operation type will help to convert a string to lowercase. You can provide input string either by variable or by actual string.

![](https://285793208-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LTfGJN4r0uAh7HIsQzW%2F-MCvTeVYwVesT2eJY-6d%2F-MCvVoVdN-z8pNk4IbLQ%2Fpicture5.png?alt=media\&token=d0173c55-3ef4-4cf5-ac62-7738fa3d4d5e)

### 4. Convert String To Uppercase

This operation type will help to convert a string to uppercase. You can provide input string either by variable or by actual string.

![](https://285793208-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LTfGJN4r0uAh7HIsQzW%2F-MCvTeVYwVesT2eJY-6d%2F-MCvWEBYzGl3l2D4exzW%2Fpicture5.png?alt=media\&token=007f1231-6f08-440d-925f-d84ba19a47c9)

### 5. Extract String

This operation will help you to extract any part of the string using [regex expression. ](https://regex101.com/)

Position will help the system to extract that position's group if multiple groups are found.

![](https://285793208-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LTfGJN4r0uAh7HIsQzW%2F-MCvTeVYwVesT2eJY-6d%2F-MCvY5SQplBpdCgYTCaF%2Fpicture5.png?alt=media\&token=d041d7f7-ce5e-4740-a1cc-36e7f3d149fe)

{% hint style="info" %}
Enabling 'persist' will help to continue the flow forward if any value is not found.
{% endhint %}


---

# 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-phonon-io.gitbook.io/central/widgets/functions/string-manipulation.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.
