if s[start].isdigit():
            while end < len(s) and s[end].isdigit():
                end += 1