Variable name fix to ensure we have the proper cleaning of the realm name