Correctly output str and int types together.