Replace ampersand placeholders correctly