code: public static String expandLine(CharSequence self, int tabStop) {
          String s = self.toString();
          int index;
          while ((index = s.indexOf('\t')) != -1) {
              StringBuilder builder = new StringBuilder(s);
              int count = tabStop - index % tabStop;
              builder.deleteCharAt(index);
              for (int i = 0; i < count; i++) builder.insert(index, " ");
              s = builder.toString();
          }
          return s;
      }
docs: Expands all tabs into spaces. Assumes the CharSequence represents a single line of text.
  
  @param self A line to expand
  @param tabStop The number of spaces a tab represents
  @return The expanded toString() of this CharSequence
  @see #expandLine(String, int)
  @since 1.8.2