add NumString method to check number string