Implemented gsub.