corrected replace string