bugfix replace string case related methods