--- title: "fill-from-right()" slug: "string-fill-from-right" updated: 2026-08-17T07:38:18Z published: 2026-08-17T07:38:18Z canonical: "docs.lobstersoftware.com/string-fill-from-right" --- > ## 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. # fill-from-right() This function adds a filling character **b** to the right side of text **a** until a length of **c** is reached. ## Parameters | Parameter | Description | | --- | --- | | a | Text. | | b | Filling character. **NOTE:** If more than one character is specified, only the first character is used. See examples below. | | c | Length of result text. | ## Examples | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | 12345 | 0 | 10 | 1234500000 | | 12345 | 0 | 1 | 12345 | | 12345 | test | 10 | 12345ttttt |