make trim optional for path:{foldlines,lines}