parse collection from hostname