I thought that this would be easier to spot if somebody wonders why his table with capital X does not write and looks through the code.
Your solution has about the same number of characters in code and I don't think there is performance advantage (one extra function call to `lower`).
But, no strong feelings either way.