added line length limit with word wrap support