Use gsub instead of sub