pattern replace with empty "" setting fails
we should default the replacement to "", since in the settings, if its set to "", we remove the setting