Hi, I would like to have this code remove and XY or RR (if they are the first 2 characters) in a field with valuesXY2365541RR12478848965445would be:236554112478848965445Writing a query is giving me trouble. I was trying this code with a search cursor, getvalue and if elif statement...but no luckimport arcpy Feature_Class_Name = arcpy.GetParameterAsText(0) Output_Features = arcpy.GetParameterAsText(1) arcpy.env.workspace = r"H:/TestMDB.gdb/XY_1" cursor = arcpy.da.UpdateCursor(Feature_Class_Name, ["NM"]) for row in cursor: cursor.updateRow([row[0][2:]]) del fc