thread safe file system text manipulator