docs: function checkSubStr(targetStr, pos, searchStr) {
    if (searchStr === "" || pos < 0 || pos + searchStr.length > targetStr.length) {
      return false;
    }
    return targetStr.substr(pos, searchStr.length) === searchStr;
  }