Remove trailing white space
Fix logical thinko in host comparison

node[:fqdn]!=t[:fqdn] always matches, because t is a string (of IP
address), and node[:fqdn] is a hostname.