string.
It looks like the you are getting out of range Error.
Lets
say your string variable has 5 chars. Your string index range is from 0
to 4. If you try to get substring from index 1 to 5 you will get this
error.
Try something like following..
strFirstName = strFirstName.Substring(1,l
enFirstName -1); //-1 is important