Strip out extraneous prompts