# Replace

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/expressions/functions/string-functions/replace
>
> Replace returns a string with all occurrences of a substring replaced by a new string.

This Function returns a _\<string>_, composed by the **Source string**, having the **String to replace** replaced by the **New string**.

### Parameters

* **Source string** _\<string> -_ String from where the value will be retrieved.
* **String to replace** _\<string_> - String to replace in the **Source string**.
* **New string** _\<string_> - String to replace the String to replace in the Source string.

### Examples

* _Example 1_

Replace("Kalipso is good.", "good", "very good")\
**Result** = Kalipso is very good.

* _Example 2_

Replace("Kalipso is very good.", "xpto", "bad")\
**Result** = Kalipso is very good.
