Fix String.replace usage