> For the complete documentation index, see [llms.txt](https://docs.cascade.io/cascade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cascade.io/cascade/functions-and-expressions/functions/text/substitute.md).

# SUBSTITUTE

SUBSTITUTE( `text`, `value to find`, `value to substitute` )

Returns a string with all instances of one value replaced by another

### Arguments

| Arguments             | Description                             |
| --------------------- | --------------------------------------- |
| `text`                | String(s) to search for `value to find` |
| `value to find`       | Character or string to find in `text`   |
| `value to substitute` | Character or string to substitute       |

### Output

Outputs `text` with all instances of `value to find` replaced with `value to substitute`

### Example

```
SUBSTITUTE("Spreadsheets", "Spread", "Bed")
>> "Bedsheets"
```
