Cleanup check of blank realm name
Store realm name in hub struct using a preallocated string instead of a pointer