Removing hostname from stubs