Validate hostname, and strip spaces #9