truncate: add support for separator