AS3 - Add apostrophes to numbers

I have dynamic text fields that contain numbers. For better readability I’d like to add apostrophes to them. Though, I also need the numbers for calculations, so probably I’ll have to remove the apostrophes whenever I need to.

Any easy way to achieve that, maybe even with Flash itself?