Edit command input to remove prompt.