I'm doing a program where the user can register, fetch and remove clients. To enter it type "insert [client name]" and a code is generated automatically. I have a problem with the search function. Currently the user has to type: "find x y" where x is an int q identifies whether the search will be done by the code or customer name and y is the corresponding value. I wanted to do this without asking the user to specify the type of search. Is there a way to get the data and then check if I got an integer or a string?