remove trailing delimiters, allow easier config of line delimiters