Return the string without any whitespace at the beginning or the end. code example
Example 1: python trim whitespace from end of string
>>> " xyz ".rstrip()
' xyz'
Example 2: Return the string without any whitespace at the beginning or the end
txt = " Hello World "
x = txt.strip()