Change the string which causes the thread to be notified