capitalize

Puts the string into lowercase and makes every character that starts a word a capital letter.

e.g. from: wiTheR sKeLeTOn to: Wither Skeleton

Return

a string with each word capitalized

Parameters

str

string to capitalize