I am looking for a way to replace characters in a Swift String.
String
Example: \"This is my string\"
I would like to replace \" \" with \"+\" to get \
var str = "This is my string" str = str.replacingOccurrences(of: " ", with: "+") print(str)