Convert string to maxint number.