pineTok function - PineScript tokenizer