fix bug caused by unintuitive behavior of strncmp