How can I put spaces to a long string that does not have spaces

```
Example : 5Bedroom.Apartment,in.NewYork>City

```

I want to put spaces after any dot and comma. Only if no space after dot and comma. If already have space, just ignore