You could factor out the toLowerCase() for simplicity.
You could throw in a substring of characters 1-6 beforehand to speed up the checking on bulky queries