String value = 12345
StringUtils.isNumeric(value) //returns true
//Add this to your code and call
static private boolean isMyNumber(String s){
try{
Integer.parseInt(s);
return true;
}catch (Exception e){
return false;
}
}
if(Number(myNumber) != NaN){
myNumber = Number(myNumber);
}