JString::ucwords

UTF-8 aware alternative to ucwords Uppercase the first character of each word in a string