Replace placeholders