Can't replace .string directly, use .replace_with()