stripping line feed from the read data