Use global substitution for %c and %p