If we do not assume that all inputs are lowercase, then we should use ngx_strcasecmp instead of ngx_strcmp