# [C# (.NET Core)], <s>231</s>, <s>203</s>, <s>200</s>, 196 bytes EDIT: Function is now at 185 bytes plus 18 for <code>using System.Linq;</code> Thanks to BMO (for 1>0 being equal to true plus newline removal) and Mr. XCoder (for f=!f statements)! EDIT2: Down to 182 bytes plus 18 for <code>using System.Linq</code> thanks to dana for sharing a few golf tips! EDIT3: Thanks to Embodiment of Ignorance for the int[] -> var, removal of short circuit && -> &, and changing up ToArray -> ToList! (178 bytes + 18 using) <!-- language-all: lang-cs --> p=>{var f=1>0;while(f){var t=p.Select(n=>n-48).ToList();p="";f=!f;var h=t.Count;for(var j=0;j<h;j++){if(j<h-1&t[j]==t[1+j]){p+=t[j]+t[1+j++];f=!f;continue;}p+=t[j];}};return p;}; [Try it online!][TIO-jqfnl73o] [C# (.NET Core)]: https://www.microsoft.com/net/core/platform [TIO-jqfnl73o]: https://tio.run/##TZAxa8MwEIV3/wrVQ5FQbWLo4HCRl0CnFAopdEgz2KoUyziSK51TivFvd@0kQ7nh3fve8YaTIZHOq6kPxp7I/jegOkP036U7Y78hkm0ZAnnz7uTL8xAR0vVVayQJWOIsF2e@yGtpLGVLSMhLb@UmoJ@Lnm5SkIqIqRPFcCk90SIrVvBTm1ZRza4IRZfuVaskUisKmzznLH13OxOQMuhEHIMWDxqW01pgunW9RdDO04U0YgXNpoaGczYYTec9yR7x0ByFwEPGmyMbOi4WwK@e8@OtTzqLxvYKxnsO4wheYe8t6WCE6f6HrbPBtSr98AYVrWi8Xud5zHj8aWMG0TjP9Ac "C# (.NET Core) – Try It Online"