remove if to simplify strstr