def capitalize_words(words):
    """Capitalize the words of an input string."""

    capitalized = []
    for word in words.split(' '):
        capitalized.append(word.lower().capitalize())
    return ' '.join(capitalized)