Only replace the last occurrence, not all.