Made capitalize Words function with passing tests