String.prototype.rightPad = function(padString, length) {
  let str = this;
  while (str.length < length) {
    str = str + padString;
  }