--- title: "replace-char-at()" slug: "string-replace-char-at" updated: 2026-08-17T08:00:58Z published: 2026-08-17T08:00:58Z canonical: "docs.lobstersoftware.com/string-replace-char-at" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # replace-char-at() This function replaces the character at position **b** of text **a** with character **c**. ## Parameters | Parameter | Description | | --- | --- | | a | Text. | | b | Position of character to be replaced (starting at 1). | | c | Replacement character. Newline and tabulator characters can be specified using "*\NL"* and "*\TAB"* (also see [Representation of nonprintable delimiters](/v1/docs/en/intro-concepts-nonprintable)). | ## Examples | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | aaaa | 2 | 1 | a1aa |