Capitalize all words in a string

 Problem

I have a string and want to capitalize all the "words" in it.



 Recipe


// String literal
let s = "hello horld"

// Replace "World" with "Guys"

let b = s.capitalizedString
print(b)
				


 Playground