From: John Griffiths [mailto:indiehead / gmail.com] 
# @s = "fdsdsf, dsfdsfsd fdsfdsfd dfsfds"
# puts @s.gsub(',','').split( /  */ ).join(',')
# returns => "fdsdsf,dsfdsfsd,fdsfdsfd,dfsfds"

that is 3 meths
try if one or 2 methods would do, eg,

> @s.gsub(/,*\s+/,',')
=> "fdsdsf,dsfdsfsd,fdsfdsfd,dfsfds"