add truncation if length of repr string exceeds a set limit