Fixed Search function to not be case sensitive for department