Fix truncate filter to always truncate long strings