Replaces placeholders with class selectors