refine function string params