demo for string parsing code