added truncate filter for truncating strings