Replace all occurance of same placeholders before executing command