Yanfly Item Upgrade slots - confusion with item type

Here's what I want to happen:
I have 2 weapons. An Epic Sword and a Rare Sword. I want the item "Epic Stone" to be able to upgrade the Epic Sword only and the "Rare Stone" to upgrade the Rare Sword only. How will I set this up?

Also... is it just me or using the notetag <Type: string> will cause an error? Tried it on blank project and it causes error there as well.

Edit:
Also wanna add this since I'm unable to figure it out... what if I want a random stats upgraded? What code will I put under <Upgrade Effect>? Example. I want the "Random Stone" to upgrade a random stat (1 from the 7 basic stats) to 5%. The code Random Stat: +x actually doesn't work here since you need to replace the stat with an actual stat.

Here's the plugin I'm referring to btw:
http://www.yanfly.moe/wiki/Item_Upgrade_Slots_(YEP)

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-item-upgrade-slots-confusion-with-item-type.114513/