[CSharp] Fixed trim issue to using replace, remain txt for future usage.