The function removes all data from the typed string. After calling the function, the typed string is empty (isEmpty()).