Yes. Substring, in this instance, takes 2 parameters: a start index and a number of places to move from that index.
Also, make sure you check the length of the string being passed in if, for example, a user entered 77 as the zip, you will throw an exception because there is no 3rd position in the string.
================================================== =========
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========