change strncmp by strstr in FindType