fix replace first in formatted content