refine str format