put all host accesses in null guard
String.format not needed