github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/job-specification/hcl2/functions/string/title.mdx (about) 1 --- 2 layout: docs 3 page_title: title - Functions - Configuration Language 4 description: |- 5 The title function converts the first letter of each word in a given string 6 to uppercase. 7 --- 8 9 # `title` Function 10 11 `title` converts the first letter of each word in the given string to uppercase. 12 13 ## Examples 14 15 ```shell-session 16 > title("hello world") 17 Hello World 18 ``` 19 20 This function uses Unicode's definition of letters and of upper- and lowercase. 21 22 ## Related Functions 23 24 - [`upper`](/docs/job-specification/hcl2/functions/string/upper) converts _all_ letters in a string to uppercase. 25 - [`lower`](/docs/job-specification/hcl2/functions/string/lower) converts all letters in a string to lowercase.