Is it ensured that isInteger will face only digits?