replace text with hint