Give a number string, check if it is valid number. By "valid", we mean if it validates as one of below formats: 1. integer, such as '0', '-1' 2.