capitalize_words(s) that returns s with the first letter of every word capitalized and the rest of each word lowercased, where words are separated by single spaces. Do not use str.title(), since it mishandles words containing apostrophes.s = 'the quick brown fox'
'The Quick Brown Fox'
Each word gets its first letter capitalized.
s = 'HELLO there WORLD'
'Hello There World'
Rest of each word is forced to lowercase, regardless of input casing.
Split on spaces, then use `word.capitalize()` on each piece.
Rejoin with `" ".join(...)`.