Thanks for the quick reply! I tried to get it done but got an error. The field with the leading space would be "data1", I added a second field "data2" in which I want to field calculate the entries from data1 without the leading space. So I tried this: import arcpy from arcpy import env env.workspace = "C:/data" arcpy.AddField_management("shapefile_name.dbf", "data1", "TEXT", "", "", "20") arcpy.CalculateField_management("shapefile_name.dbf", "data2", '!data1!.lstrip(' ')', "PYTHON") I apply the field calculation in data2, using the box below "data2=", without having checked the box "advanced" (no VBA Script code). This is in ArcGIS 9.3., the table of a polygon shape file.
... View more