```
    raise ValueError('Format function for value {0} returned {1} instead of string type'.format(val, type(val)))
```