truncate raw text