# Capitalize – função de script e gráfico

Capitalize() retorna a string com todas as palavras em letras iniciais maiúsculas.

Sintaxe:

Capitalize(text)

Tipo de dados de retorno: caractere

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Capitalize.htm)

#### Exemplo: Script de carregamento e expressões de gráfico

| Exemplo | Resultado |
| --- | --- |
| `Capitalize ( 'star trek' )` | Retorna 'Star Trek' |
| `Capitalize   ( 'AA bb cC Dd')` | Retorna 'Aa Bb Cc Dd' |

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Capitalize.htm)

#### Exemplo: script de carregamento

```
Load 
String,
Capitalize(String)
Inline
[String
rHode iSland
washingTon d.C.
new york]; 
```

Resultado

| Cadeia | Capitalize(String) |
| --- | --- |
| rHode iSland | Rhode Island |
| washingTon d.C. | Washington D.C. |
| new york | New York |