Changed the sub to gsub