This is the text block that I want to transform to another form:

```
1040 S. Vintage Ave.
Building A Ontario, CA 91761
United States 

```

This is the wanted output:

```
1040 S. Vintage Ave., Building A Ontario, CA 91761,United States  

```

I've tried to use split, and replace, also some re expression but I couldn't make it work.

Any suggestion would be helpful :)