Replaced delete with gsub