Fix minor typos.
More sophisticated _find-ending-quotes function.