XiString now implements CharSequence.
Fixed for-loop temporary variable bug.