refine some strings