added a method of parsing variables out of an expression