Automatic segmentation and recognition of unconstrained handwritten numeral strings