TRUNK-2280: Latest changes made for displaying a user friendly error message when number of characters exceed 1024

Why do you have to repeat the substring here, it was already done on line 633 above