How to Check if the text read from keyboard Is integer or string or character?