avoid strncmp