method
chararray.
strip
For each element in self, return a copy with the leading and trailing characters removed.
See also
char.strip
numpy.char.chararray.startswith
numpy.char.chararray.swapaxes