Add fillPlaceholders function to replace delimited text inside strings