textproc: prefix, suffix
frequency group counter
textproc: fix NewlineAtEnd don't add for empty stream