fixed regex for principalName