Analyze API returns in YAML format if analyzed string begins with ---
fixes #2624