added token truncate filter

closes #49