I wrote a function to "re-sanitize" titles when using magic tokens:
function getTitle (ioffset = 0) {
// Working from the raw title, we have to cut away any extra junk:
local _t = fe.game_info( Info.Title, ioffset );
// Ignore anything after the first (, [, or /:
local _i = null;
_i = _t.find( "(" );
_t = _i ? _t.slice( 0, _i ) : _t;
_i = _t.find( "[" );
_t = _i ? _t.slice( 0, _i ) : _t;
_i = _t.find( "/" );
_t = _i ? _t.slice( 0, _i ) : _t;
return strip(_t).toupper();
}