fix a bug in RR; add the framework for string

fix a bug in RR; add the framework for string