ucwords
Uppercase the first character of each word in a string
[...] = optional ... = your value
[var $... = ]call ucwords $val=...
Example code
<!--parser:xtscript-->
var $input = foo bar
var $output = call ucwords $val=$input
print input = $input<br />
print output = $output
<!--/parser:xtscript-->
Show in textareaExample output
Reloadinput = foo bar
output = Foo Bar