---
title: TITLEIZE
url: https://www.tines.com/docs/formulas/functions/titleize/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# TITLEIZE

*[View on tines.com](https://www.tines.com/docs/formulas/functions/titleize/)*

Capitalizes the first letter of each word in a string and replaces some characters in the string to make the title prettier. By default, strings ending in `_id` have that suffix removed. Pass `keep_id_suffix: TRUE` to preserve it.

**Categories:** Text

## Syntax

```
TITLEIZE(text, [keep_id_suffix: FALSE])
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "hello world"
  }
}
```

Formula:

```
TITLEIZE(my_action.message)
```

Output:

```json
"Hello World"
```

### Example 2

Input:

```json
{
  "my_action": {
    "message": "helloWorld"
  }
}
```

Formula:

```
TITLEIZE(my_action.message)
```

Output:

```json
"Hello World"
```

### Example 3

Input:

```json
{
  "my_action": {
    "message": "hello_world"
  }
}
```

Formula:

```
TITLEIZE(my_action.message)
```

Output:

```json
"Hello World"
```

### Example 4

Input:

```json
{
  "my_action": {
    "message": "author_id"
  }
}
```

Formula:

```
TITLEIZE(my_action.message, keep_id_suffix: TRUE)
```

Output:

```json
"Author Id"
```
