Replace placeholders with empty string when optional parameter does not have any value