added string to integer subroutine

A little too ghetto for my liking.