Trim the AppDomainAppId.