string deletion fix