Fixed truncation issue for long strings.