[c#] Remove last specific character in a string c#