Fixed gsub, should be replace