Could not we do this with a dictionary or just using service.lower() ? 
and a single
```python
service_working = ['hfc', 'hec']
if service.lower() not in service_working:
     except....
```