handles itoa and atoi