If your `...[:1]` is a string, doing the following is programmatically better
```python
if 0 == resultEnableWebServer.lower()[:1].length
```