Fix syntax for check hostname