Check if string contains only digits Check if string contains only digits javascript javascript