<human>:  Write me a Python function to capitalize the first letter in each word.
<bot>:)', r'\1', string)

# Enter the string
string = "Hello world!"

# Calling the function
print((capitalize_first_letter(string)))

#Example Output
# Hello world!

#Remember to inspect code for bugs.