strncmp for test pass