code: public static String getSpaces(int number) {
  
      Assert.argument(number >= 0, "The number [{0}] of desired spaces must be greater than equal to 0", number);
  
      StringBuilder spaces = new StringBuilder(Math.max(number, 0));
  
      while (number > 0) {
        int count = Math.min(SPACES.length - 1, number);
        spaces.append(SPACES[count]);
        number -= count;
      }
  
      return spaces.toString();
    }
docs: Constructs a String with only spaces up to the specified length.
  
  @param number an integer value indicating the number of spaces in the String.
  @return a String containing the specified number of spaces.