truncates result text