removing extra chars from editor and spliting them at , as well as and