fix do not use a replaced string when splitting.