Use tr instead of gsub. Just slightly more appropriate.