function pad(str, len) {
  str = String(str);
  return Array(len - str.length + 1).join(' ') + str;
}
Pad the given `str` to `len`.

@param {String} str
@param {String} len
@return {String}
@api private