Can someone please let me know why this is throwing a runtime exception? What's the best way to go from a String to an Integer?