Basic string tokenizer and parser