@RTRIM[string1,string2]: - Returns string2 with any characters in string1 removed from the right side of string2. String1 must be enclosed in double quotes if it contains any spaces, tabs, or commas.
Example:
echo "%@rtrim[98XP,Windows XP]"
"Windows "