Updated applyTo to use new getLeftParenthesis method