python string number of digits