```addrs.split(/,\s+/)``` will do the same thing as your gsub + split.