How can I take the last double from a string and put it in a double var?