method

strip

strip()
public

Strips entire range of Unicode whitespace from the right and left of the string.