Fix bug where replace is case-insensitive by default