add str protection on detector name  and version