hostname formatting