I don't know the exact syntax but `gsub` might be better than `tr` in this case:
```ruby
"a  b  c".tr(" ",",") => "a,,b,,c"
```
while
```ruby
"a  b  c".gsub(/\s+/,",") => "a,b,c"
```
i.e. you can ignore extra spaces