# Tidying Text with .str

Text that people type differs in spaces and capital letters, so the same name fails to match itself; the .str tools strip, lower and title tidy a whole column at once, and len, contains and startswith test every value so you can find the ones that look wrong.

![Cheat sheet: Tidying Text with .str](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/f0acfce24226448b80c277615cc94d7a.webp)

- Category: Data Analysis
- Level: Apprentice
- Tags: python, str accessor, strip() (python), upper() and lower() (python), Whitespace (python)
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/pandas-string-methods-cheat-sheet
