github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/website/docs/configuration/functions/title.html.md (about) 1 --- 2 layout: "functions" 3 page_title: "title - Functions - Configuration Language" 4 sidebar_current: "docs-funcs-string-title" 5 description: |- 6 The title function converts the first letter of each word in a given string 7 to uppercase. 8 --- 9 10 # `title` Function 11 12 -> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and 13 earlier, see 14 [0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html). 15 16 `title` converts the first letter of each word in the given string to uppercase. 17 18 ## Examples 19 20 ``` 21 > title("hello world") 22 Hello World 23 ``` 24 25 This function uses Unicode's definition of letters and of upper- and lowercase. 26 27 ## Related Functions 28 29 * [`upper`](./upper.html) converts _all_ letters in a string to uppercase. 30 * [`lower`](./lower.html) converts all letters in a string to lowercase.