make ftrim attach lf at end