Replaces all occurrences of a search string with a replacement string.
replace(str: string, search: string, replace: string) -> string
Returns the documented result for the function signature.
respond { status = 200, body = { slug = replace(lower(ctx.request.body.name), " ", "-") } }