add ishostname function for validating hostname strings
update hostname validation and text about valid contents