Changed search to take a string