a simple stream filter to seperate text stream into lines