Modified search function to handle plurals