corrected str to text in limitEllipsis