Detect string type static value correctly