Make check for error case insensitive