extract digits from a string thumb