> For the complete documentation index, see [llms.txt](https://docs.streamavatars.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/helper-class/replace.md).

# replace

```lua
return function
    local val = 'hello';
    val = helper.replace(val, 'o', '8');
    log(val); --logs hell8
end
```
