Added stringToInt helper function to Application