several bug fix and test of rle_string