converting integer to string using itoa and converting it back to an integer