Hi Sanjana,
before using offset on the string variable check the string length and then check the length of the variable is greater or equal to your variable using Condition (ex:if) and then only perform the offset operation so that you can remove the dump.
Regards,
Pavan