---
title: "exCapitalize"
canonical: "https://help.agiloft.com/space/HELP/283738114/exCapitalize"
format: markdown
---
The capitalize formula formats a given text string into sentence or title case. For example, you can use the function to render "sample text" as "Sample text" or "Sample Text".

The first input parameter is the string being formatted. For the second input parameter, choose whether to capitalize each word in the string. To apply sentence case and capitalize only the first word, use "false" without quotes. To apply title case and capitalize each word, use "true" without quotes. If you don't specify the second parameter, title case is used.

#### Syntax

`capitalize("value"[, titleCase])`

#### Examples

| **Example formula** | **Output** |
| --- | --- |
| capitalize("changes and amendments") | Changes And Amendments |
| capitalize("changes and amendments", true) | Changes And Amendments |
| capitalize("changes and amendments", false) | Changes and amendments |
| capitalize(num2words($contract_amount, "currency", "en"), false) | One thousand U.S. dollars and twenty cents |