i did something. when i go through this algorithm on a paper, it makes sense... where am i wrong? i can't use trim method because the task is to use a while loop i know i'm kinda stupid 'cause i can't figure out this simplest task, but thank you in advance to anyone who'll explain this thing!
public static string RemoveStartSpaces(string text)
{
int i = 0;
while (char.IsWhiteSpace(text[i]))
{
i++;
text.Substring(i);
}
return text;
}