sanitizeLHE_replace implement