swig truncate filter