using correct text for partial substitution