how to I remove blanks from the realm ?

like, 'fiscal.edu '  after the edu 
Login incorrect (Home Server says so): [fiscal@fiscal.edu /<no User-Password attribute>
After adding this I get : 
if ("%{request:User-Name}" =~ /^(.+)@(.+)\\s$/) {
update request {
                        Stripped-User-Name := "%{1}"
                        Realm := "%{2}"
                }
        }

Login incorrect (mschap: External script says Logon failure (0xc000006d)): fiscal/<via Auth-Type = EAP>] (from client TLS tunnel)
i get / after username

still no luck!!!