You should do an input check and raise exceptions if something required is missing, so here name and search_string are required.