You could try finding only numbers which are single digit ones. Then you can replace them with themselves preceded by zero. Your code can look like
text = text.replaceAll("(?<!\\d)\\d(?!\\d)", "0$0");
I used lookaroud mechanisms (?<!\\d)
(?!\\d)
to make sure that digit we find \d
has no other digits before or after.
Replacement 0$0
contains 0
literal and $0
which is reference to group 0 - match found by our regex.
But if you are responsible for generating this text
September 3 September 3 September 2 September 1 September 10 August 14
from smaller parts September 3
September 3
September 2
September 1
September 10
August 14
then maybe consider using String formatter to create this parts with this additional 0
like
String part = String.format("%s %02d","September",3);
System.out.println(part); //September 03