changed snippet extraction code to handle noisy text and long line(long line not yet complete