refactored replace string literals on sanitizer