separate string tokenization
add test for string parsing