add cleanStr function.