deleting characters method in libstr