Reworked XiString constructor.