Correct bug on percent directive and implement placeholder formating (hardcode) #2727