fixed string.replace, now replaces all matches with the target.