You should `.ToLower()` here if you want Commands.FirstOrDefault to be case insensitive (and if you don't want it to be case insensitive, then you should remove the other ToLowers).