Substitutes a substring pattern with a property value.