Is there a function built into Java that capitalizes the first character of each word in a String, and does not affect the others?
Examples:
jon
WordUtils.capitalize(str) (from apache commons-text)
(Note: if you need "fOO BAr" to become "Foo Bar", then use capitalizeFully(..) instead)
"fOO BAr"
"Foo Bar"
capitalizeFully(..)