Added case insensitivity to search function