Updated checking to use lowercase all the time