Given a string s, capitalize the first letter of every word and convert all other letters to lowercase.
Words are separated by spaces. Return the resulting string.
Input: A single string s.
Output: The string with each word's first letter capitalized and rest lowercased.
Input: hello world
Output: Hello World
Explanation: First letter of each word capitalized.Input: the quick brown fox
Output: The Quick Brown Fox
Explanation: Each word gets first-letter capitalization.Input: i love coding
Output: I Love Coding
Explanation: 'i'→'I', 'love'→'Love', 'coding'→'Coding'.0 <= s.length <= 10^4s consists of lowercase/uppercase letters and spaces