1. Does it happen on WhatsApp app only? Try sending the text in Message app.
2. What exactly do you type and at what point it adds two underscore?
3. Send the screenshot of number of keyboards you have on your iPhone. Settings > General > Keyboards > Keyboards.
4. Check if you have any text replacement enabled for this type of text. Go to Settings > General > Keyboards > Text Replacement.