refine on string messages