Hello again Udara,
This is a more general formula.
=REPLACE(LEFT(A1,LOOKUP(10,MID(A1,ROW(INDIRECT("1:30")),1)+0,ROW(INDIRECT("1:30")))),1,MIN(FIND(0,SUBSTITUTE(A1&0,{1,2,3,4,5,6,7,8,9},0)))-1,"")+0
If your strings can be longer than 30 characters change the INDIRECT range to suit.
Regards
Harry