Fix wrong String.replace usage