Send a string if input field is empty

I have a input field and a button (dash_core_components.Input)(dash_html_components.Button). I store this input in a database after button is pressed.

So, I would like this input to send or default to NULL, if button was pressed with nothing entered. Is there any clean way this can be done, without using if, of course?