In ArcGIS Pro, it is sometimes necessary to
remove extra spaces from the values of a string field in an attribute table.
This can be achieved using the strip() Python function, which removes any
characters, including spaces. This video describes the workflow to remove
spaces using the strip() Python function in the Calculate Field tool. Item28712-2024