public native toCapitalize() as String
Returns a new string with the first character capitalized. Uses locale-independent Unicode title casing for the first character and full lowercase mappings for the remainder; the result can change length.
A new String.
assert "hello WORLD".toCapitalize() == "Hello world"