You can just replace strncmp() with MCU_strncasecmp() below - rather than lowering the string. Also don't forget the referencing comment :)