(I'm sure this is a duplicate, but I can't immediately find one.)
Strings in .NET are immutable. Methods like string.Remove
, string.Replace
etc don't change the contents of the existing string - they return a new string.
So you want something like:
s = s.Remove(0, 15);
Or alternatively, just use Substring
:
s = s.Substring(15);