in reply to converting "30k" string to integer
A quick Super Search found The Definitive Unit Conversion Script.
Good luck to you!