Create a function in Python that takes a string as an argument and capitalizes the first letter of each word.
String s = "hello world"
def capitalize(s):
  return ' '.join(w.capitalize() for w in s.split())