Can you use `chomp` on the hostname to remove the newline character.