rewrite the quote splitter (use a string-by-string stateful approach)