upd: replace string prototype functions

replace string.prototype “end" and "start with” with ECMAScript 6 most
compatible specification