I've been trying to get something together but I keep running into the problem that the substr variables are strings.. and I can't seem to get them back to numeric.

*stumped*