It depends, if 'USD 1000' as a whole is the string, you first have to make sure that you filter out the text and only the numeric values remain. After that, it's quite simple, use the parseInteger($yourstring) function to turn your string in an integer so you can execute the sum function.
Hope this helps.