extractLhs function

Extract left-hand-side expression.