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

this should be <=