replacing startswith method with equivalency test in instance type selection block