correct hostname length