stringRepeat = (string, num) => {
    if (num < 0) {
      return ''
    }
    return new Array(num + 1).join(string)
  }
Repeats a string
@var string The string to repeat
@var integer The number of times to repeat
@return {string} The repeated chars as a string.