✅ How do I get rid of 'System.ArgumentOutOfRangeException'

here the 'l'astname' substring doesnt come as output because of this exception can someone help me fix it?
image.png
Was this page helpful?