Due to the last if check when I drop an object, even with the right name, in the prim, I get a script error saying "Unable to give inventory: 'No item named ''.'." which is what leads me to believe it's just returning an empty string and I don't really know why.