Removing comma from the last item in the list of connected realms