Implement the autoElementSubstitute option