address second comment on using str_replace instead of printf for setting filename format expression