Fix replace function for custom fields
Merge pull request #273 from vladyslav2/master

Fix replace function for custom fields