smoothly remove command from the text.