Lets say I had a large string (stored in a variable) and in that string somewhere was the string "Total Cost: X", where X represents a arbitrary number. How could I store this value X in a variable of its own? And lets also say that if the above string is missing the stored value should be zero.