Just occurred to me that we could write this as `host.strip('[]')` which would be a bit better. :)