statt:
var original = "user hashimoto has two dogs";
var pos = original.lastIndexOf("has");
var neu = original.substr(0,pos) + original.substr(pos+3);
muss es lauten:
var original = "user hashimoto has two dogs";
var pos = original.lastIndexOf("has");
var neu = original.substr(0,pos) + original.substr(pos+1);