Welcome to the Ranch
Please use the
code button, and avoid too many empty lines, which don't enhance legibility. I have added the tags and removed some empy space, and I think it looks much better. Hope you agree
Don't try all those things at once. Try one and get it working. Do them all separately. Try the numbers first. Look at this sort of thing:-
Try a few examples of input, considering each line as a single
String:-
0
123456789
123456.7890
123467890 Campbell
1,234,567,890
I am assuming a British/USA locale with the commas in the text.