Can’t pass right ID to .replaceWith()

I know the answer is probably gonna be something very simple but i’m losing my mind over not getting this to work: