threads.sh - add detect null string for hostname string.