Does it use UI names or datathing names?
It uses ui names (has to be exactly the name), example: "Hammer " (remove quotes), for some reason the hammer has a space at the end; another example: "Rocket L." (remove quotes)
You can also do something like this in code
$uiNameTable_Items["name of item"], it'll return the datablock it goes to, which is an item