trim host address before using it