fix delete string bug