There are a couple of ways you might want to look at.
The first is to return the new value as the result of the method:
public static string poop(string hi)
{
return hi.TrimStart();
}
You would then use it like this:
string trimmed = poop(" Hello World! ");
Console.WriteLine(trimmed);
The second is to pass a reference to the parameter:
public static void poop(ref string hi)
{
hi = hi.TrimStart();
}
And you then use it like this:
string untrimmed = " Hello World! ";
poop(ref untrimmed);
Console.WriteLine(untrimmed);
In both cases, it will print "Hello World! " on the console.