additions for previous commit of ExtendedToString function