result = emailAddress.Substring(5,4)
IN THIS LINE YOU ARE TAKING SUB STRING FROM emailAddress string.
here you are strating taking string from 5th position to (5+4) 9th position.
suppose emailAddress="
asdf@gmail.com";
then result= gmai
I hope this will help you.