Changed scan to gsub