django remove whitespace code example Example: django trim string whitespace sunny_leone = " sunny leone " x = sunny_leone.strip()