Issue #3419763 by Tom Konda: Replace deprecated String.prototype.substr() with String.prototype.substring()
mentioned in commit 0f1cc5ae