fixed a bug, not passing third argument into strncasecmp function
more test