The reason of changing this line is to get the string preview completely.

This change will not affect the other code because the parameter "maxStringLength" is set to 20 by default. So if the caller not give any value for "maxStringLength" it will run as default.