Improve Inventory Search Function

Here’s the correct place for these kind of suggestions: