fix a bug in remove_strip, the bug cause an extral string, which is because
of memory index error.