Replace different section placeholders and add rules