split string by tokens