public Principal(String provider, String id, boolean stripHyphen) {this.provider = provider;this.id = stripHyphen ?id.replace("-", "") : id;}

public Principal(string provider, string id, bool stripHyphen){this.provider = provider;if (stripHyphen){id = id.Replace("-", "");}this.id = id;}
