added frame peeking to stringparser