Made a more or less temporary solution by adding 'class numbers' for each possible content of the text column, so that i can later re-add them with something of an ismember function.
However, a less long-winded solution would still be much appreciated.