Converting String Input Into Integer Operations