updated left to right number extraction