capitalize


Description:

public static string capitalize (string? s)

Capitalize the first character of the string.

Example:

    assert (Strings.capitalize ("hello") == "Hello");
assert (Strings.capitalize ("Hello") == "Hello");

Parameters:

s

the string.

Returns:

string with first character uppercased.