You have a list with values ["-500", "+280", "+962", "-2088"] and whant to sum them?
In [1]: l = "balance: -£500 yes no perhaps?" In [2]: print("{}".format(l.split()[1].replace("£", ""))) -500 In [3]: balance = ["-500", "+280", "+962", "-2088"] In [4]: b = [int(v.strip('+')) for v in balance] In [5]: b Out[5]: [-500, 280, 962, -2088] In [6]: sum(b) Out[6]: -1346str.strip(",.!@?") removes desired symbols from both sides of a string. Default are the blank symbols: \n, \r and space