> For the complete documentation index, see [llms.txt](https://appmaster.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appmaster.gitbook.io/docs/business-logic/block/functions/string/replace-string.md).

# Replace String

Replaces all instances of a substring within a given string.

**Example:** Replace String(string: "lorem ipsum", find: "m", replace: "M") = "loreM ipsuM".

### Flow Connections <a href="#flow-connections" id="flow-connections"></a>

* \[Input] In - starts the block's execution.
* \[Output] Out - activates when the block has finished its execution.

### Data Connections <a href="#data-connections" id="data-connections"></a>

* \[Input] String (string) - string within which the replacement will take place.
* \[Input] Find (string) - substring to be replaced.
* \[Input] Replace (string) - substring with which to replace.
* \[Output] Result (string) - result of the operation.
