• Given a string, title case the words in the string.

    Parameters

    • str: string

      the string to title case.

    Returns string

    the same string, but with each word capitalized.