type for Hostname should be a String.
Added Hostname#user? and Hostname#ptr?.