Sends a text string when a button is pressed. 