really simple implementation of tokenisation