I think this could replace the whole thing, and avoid string casts
```python
val = str(test_string).lower()
return val == "1" or val == "true" or val == "yes"
```