Some minor improvements on the search function
Fixing some minor issues with the search and addStudent functions