Unfortunately, as far as I know, no.
Use this line of code (copy-paste it or it won't work:)
%val = strReplace(%val, " ", " ");
You can replace the %val with whatever, but if you touch the spaces you'll have to copy it back again.
It replaces the default space with the no-break space, which isn't registered as a new element in event parameters.
EDIT:
$FRPG::ShopDumb = "list";
for(%i = 0; %i < FRPG_Items.getCount(); %i++)
{
%obj = FRPG_Items.getObject(%i);
$FRPG::ShopDumb = $FRPG::ShopDumb SPC strReplace(%obj.name, " ", " ") SPC %i;
}
echo("\c2$FRPG::ShopDumb:" SPC $FRPG::ShopDumb);
registerOutputEvent("GameConnection", "addToShop", $FRPG::ShopDumb, 1);