Fix Issue #661 by passing proper matched text received from backend to core (looks like it was introduced in ipy2 protocol), Also remove mysterious adjustment on dots that seems to cause a further problem.