only gsub when value is present