Updated search handler for id search functionality

Searching for id was not working before, due to string/integer issues.