This would possibly be cleaner like this?
```python
for item in this.children:
    if item.name.strip() == field.strip():
        this = item
        break
else:
    raise Exception("Item %s not found!" % field)
```