Implemented hostname format constraint.