added an if clause for wildignorecase option