toHash(str) {
    let hash = 0,
      i,
      chr;

    for (i = 0; i < str.length; i++) {
      chr = str.charCodeAt(i);
      hash = (hash << 5) - hash + chr;
      hash |= 0; // Convert to 32bit integer
    }

    return hash + '';
  }
toHash - Convert string to hash code
@param {string} str - Input string
@return {string} result hash string
@public