Fixed content replace to set the cursor immediately after