How to check the last char of a string and see its a blank space? If its a blank space remove it?
Specific for one space character:
if(MyString.EndsWith(" "))
MyString = MyString.Substring(0, MyString.Length - 1);
or for any whitespace
MyString = MyString.TrimEnd();