using strstr function to check string