Convert back and forth between tokenised basic and text