class_docstr: Namespace for string related expressions.
class_docstr_tok: ["Namespace","for","string","related","expressions","."]
docstr: Remove leading and trailing characters.
  
  .. deprecated:: 0.19.3
      This method has been renamed to :func:`strip_chars`.
  
  Parameters
  ----------
  characters
      The set of characters to be removed. All combinations of this set of
      characters will be stripped. If set to None (default), all whitespace is
      removed instead.
docstr_tok: ["Remove","leading","and","trailing","characters",".","..","deprecated",":",":","0.19.3","This","method","has","been","renamed","to",":","func",":","`","strip_chars","`",".","Parameters","--","--","--","--","--","characters","The","set","of","characters","to","be","removed",".","All","combinations","of","this","set","of","characters","will","be","stripped",".","If","set","to","None","(","default",")",",","all","whitespace","is","removed","instead","."]
code: def strip(self, characters: str | None = None) -> Expr:
      """
      Remove leading and trailing characters.
  
      .. deprecated:: 0.19.3
          This method has been renamed to :func:`strip_chars`.
  
      Parameters
      ----------
      characters
          The set of characters to be removed. All combinations of this set of
          characters will be stripped. If set to None (default), all whitespace is
          removed instead.
  
      """
      return self.strip_chars(characters)
  
imports: from __future__ import annotations
  import warnings
  from typing import TYPE_CHECKING
  import polars._reexport
  from polars import functions
  from polars.datatypes import Date, Datetime, Int32, Time, py_type_to_dtype
  from polars.exceptions import ChronoFormatWarning
  from polars.utils._parse_expr_input import parse_as_expression
  from polars.utils._wrap import wrap_expr
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_renamed_parameter, rename_use_earliest_to_ambiguous
  from polars.utils.various import find_stacklevel
label_desc: Use image node_id 42 for calling the ExprStringNameSpace obj's underlying member method code with example usage: obj.strip(characters) and returns: self