--- title: "fill-from-left()" slug: "string-fill-from-left" updated: 2026-08-17T07:37:03Z published: 2026-08-17T07:37:03Z canonical: "docs.lobstersoftware.com/string-fill-from-left" --- > ## 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-left() This function adds a filling character **b** to the left 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 | 0000012345 | | 12345 | 0 | 1 | 12345 | | 12345 | test | 10 | ttttt12345 |