Added procedure to handle an empty textbox.