Fix compare string with ignore set.