--- title: "starts-with()" slug: "string-starts-with" updated: 2026-08-17T08:18:24Z published: 2026-08-17T08:18:24Z canonical: "docs.lobstersoftware.com/string-starts-with" --- > ## 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. # starts-with() This function returns "true" if text **a** starts with prefix text **b**. ## Parameters | Parameter | Description | | --- | --- | | a | Text. | | b | Prefix text. | | c | (optional) Start index of **a** for the comparison. Offset: 1. Default: 1. | ## Examples | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | abcdef | abc | | true | | abcdef | ABC | | false | | Hello | He | | true | | Hello | He | 2 | false |