LUN-1608: ignore case when replacing