Minor change
Added a test that fails (hostname is one space)
Now trims blank hostnames