You could extract this to a util method for better reusability / maintance / etc.

isReservedNameInWindows(string). It would internally do the lowercase conversion etc if needed.