Implement replacing of placeholders