trim the prompt