simplify string tokenization