Fixed stdin parsing to support separator split across chunks