Renamed function filling placeHolders in templates with their actual value