Handlebars propercase
Handlebars propercase: capitalizes the first letter of each word and lowercases the rest.
Next
Runtime verified
Differs from official docs
Test scripts included
Capitalizes the first letter of each word and lowercases the rest.
Syntax
{{propercase subject [culture]}}
Returns string.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
subject |
string | Yes | String to change to proper case. |
culture |
string | No | Locale code (for example tr-TR) whose letter-case rules apply. |
Example
Tested in a Marketing Cloud Next email on 2026-11-25, alone in the email:
{{propercase "hELLO wORLD"}}rendersHelloWorld. The documented result isHello World: the space between the words is lost.- Helper names are case-sensitive.
{{properCase …}}(camelCase) is rejected when the email is saved as an unsupported helper; only the documented spellingpropercaseworks.
Show Next test script
Show calls that fail in Next (one email each)
Differs from official docs
- The reference says the helper capitalizes the first letter of each word and lowercases the rest; it does not mention removing spaces. In Marketing Cloud Next (tested 2026-11-25):
{{propercase "hELLO wORLD"}}renderedHelloWorld, with the space between the words dropped. Details
Marketing Cloud Next
Differs from the documentation
{{propercase "hELLO wORLD"}} renders HelloWorld: the words are capitalized, but the space between them is dropped. Write the name in lowercase; properCase is rejected at save. Tested 2026-11-25 by rendering in a Marketing Cloud Next email.
See also
- AMPscript
ProperCase— the AMPscript equivalent - Official reference