public void setStripAwsPrincipalIdHyphensEnabled(boolean stripAwsPrincipalIdHyphensEnabled) {
        this.stripAwsPrincipalIdHyphensEnabled = stripAwsPrincipalIdHyphensEnabled;
    }
Configure whether hyphens should be stripped from the AWS principal IDs that are read from the JSON-formatted
policy document. This is useful because AWS account IDs must be specified without hyphens, but the user may not be
aware that hyphens should not be used when configuring their policy.

This behavior may be undesirable when using IAM AWS principal IDs, which may contain hyphens. In that case, this
option may be explicitly disabled. If this is set to false, you must remove hyphens from your AWS principal IDs
manually.

By default, this is enabled (true).
aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/PolicyReaderOptions.java