when string contain special characters will delete all

when string contain special characters will delete fail.
add tips