fix output when long strings happens