title: How to use a table when a string is expected?
body: <p>I'm attempting to run the following script to undertake deletion of items.
  When I attempt to run it as is it provides me with the following error &quot;7: Bad argument #1 to 'find' (stirng expected, got table)</p>
  <p>I am very fresh to this and having a hard time working out how to allow for it to read the table.</p>
  <p>I get it working when I put in UseContainerItemByName(&quot;Lost Sole&quot;) however I want it to delete all that come up in the table.</p>
  <p>Thanks</p>
  <pre><code>    local DeleteCursor = function (...) return __LB__.Unlock(DeleteCursorItem, ...) end
  
  function UseContainerItemByName(search)
     for bag = 0,4 do
        for slot = 1,GetContainerNumSlots(bag) do
           local item = GetContainerItemLink(bag,slot)
           if item and item:find(search) then
              PickupContainerItem(bag,slot)
              DeleteCursor(bag,slot)
           end
        end
     end
  end
  
  itemsToDelete = {
      &quot;Lost Sole&quot;,
      &quot;Oribobber&quot;,
      &quot;Elysian Thade Bait&quot;,
      &quot;Old Glove&quot;,
      &quot;Rusty Chain&quot;,
      &quot;Broken Fishing Pole&quot;,
      &quot;Elysian Thade Bait&quot;,
      &quot;Lost Sole Bait&quot;,
      &quot;Partially Eaten Fish&quot;,
      &quot;Shrouded Cloth Bandage&quot;
  }
  
  
  UseContainerItemByName(itemsToDelete)
  </code></pre>