Return the sum of the numbers of the string passed and delete unneeded pending spec