fixed bug: edit with quotes gives wrong outputs