Updated stringToInt function to use only one stringstream

Instead of using convertToInt and convertToStr, it now uses
convert twice. No reason to make two separate ones earlier
except that I wasn't positive one would work. Turns out it does.