Function capitalize

  • converts the first character of the given string to uppercase

    Parameters

    • str: string

      the string to be capitalized

    Returns string

    the capitalized string