Add support for %Class% and %Spec% dynamic strings