# Capitalize - script- en diagramfunctie

Capitalize() retourneert de tekenreeks met alle woorden in beginhoofdletter.

Syntaxis:

Capitalize(text)

Retourgegevenstypen: tekenreeks

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

#### Voorbeeld: load-script en diagramuitdrukkingen

| Voorbeeld | Resultaat |
| --- | --- |
| `Capitalize ( 'star trek' )` | Retourneert 'Star Trek' |
| `Capitalize   ( 'AA bb cC Dd')` | Retourneert 'Aa Bb Cc Dd' |

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

#### Voorbeeld: load-script

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

Resultaat

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