Updated host to look for empty string in hostname instead of host