Problem 8.  Wrestled with the int type for a while for this one.  For future reference, just because the type is shadowed doesnt mean that we can't convert to it to use functions that expec it (namely substring).