lib and tools for plain text processing