Added option to truncate at word ending in truncate filter