smaller regex
using scan instead of gsub and squeeze