def title_case(sentence):
    """
    Converts enetered string into the title_case

    Parameters
    -----------
    sentence : string
        string to be converted into sentence case

    Returns
    -------
    title_case_sentence : string
        string in TITLE CASE

    Example
    -------
    >>>title_case('ThiS iS a StRING')
        This Is A String.

    >>>
    """
    # Check that input is a string
    if not isinstance(sentence, str):
        raise TypeError('Invalid input {} - Input must be of type string'.format(sentence))

    # Error if empty StRING
    if len(sentence) == 0:
        raise ValueError('Cannot apply title case to empty string')

    title_case_sentence = ""
    list_of_words = sentence.split(' ')

    for words in list_of_words:
        words = words[0].upper() + words[1:].lower()
        title_case_sentence = title_case_sentence + " " + words

    return title_case_sentence.strip()