Removing Leading and Trailing Whitespace with the strip() Function
How to use the strip() function to remove whitespace from the beginning and end of a string
How to use the strip() function to remove whitespace from the beginning and end of a string