%dw 2.0
import * from dw::core::Strings
output application/json
---
{
"a" : capitalize("customer"),
"b" : capitalize("customer_first_name"),
"c" : capitalize("customer NAME"),
"d" : capitalize("customerName")
}
capitalize
capitalize(text: String): String
Capitalizes the first letter of each word in a string.
It also removes underscores between words and puts a space before each capitalized word.