Hello everyone
I have a string that has sometimes one space and some times two spaces and may be three or more ..
I need to replace any number of spaces that are more than one space with a comma
Example :

"This is just an example of string"

The output would be "This is, just an example, of String"

I would prefer a UDF for that purpose
Thanks advanced for help