use strcmp instead of strncmp