fixed a bug where case insensitivity check broke on numberical inputs