I want this :
"You won 50000000 dollars" ==> "You won 50,000,000 dollars"
or
"Can you jump 20000 times in 340000 meters?" ==> "Can you jump 20,000 times in 340,000 meters?"
My solution is to split the words by space character and check all words separately. Is there a better way ?