health-check: Fixing string generation

When entering this code, that did raise a python exception.
Sounds like the splitting of the string was the root cause of it.