Adjust the cursor for any trailing whitespace after replacing an existing property name.

Fixes #7747 one more time to @TomMalbran's expectation.