SyntaxFix
Write A Post
Hire A Developer
Questions
WordUtils.capitalizeFully(str) from apache commons-lang has the exact semantics as required.
WordUtils.capitalizeFully(str)