NET. Note: If You find any Copyright Image Please Contact Us Immediately Copyright Content Report | Report DMCA We will remove it within 24-48 hours. I am a beginner in VB. I am trying to make a simple unit converter. Can please some body tell me how can I delete the last character of the number I enter in my inputbox?Dim str As string str "Ramy1" str str.Remove(str.Length - 1) str Ramy. Response.Write(SB.ToString()) You may need to add a few checks:-When the very first char is Uppercase not to add a space.-When a word like ID is encountered, remove the last space. [OR try this] This will find each occurance of a lower case character followed by an upper case character If your newline is CR LF, its actually two consecutive characters. Remove last characters (empty lines) in vb .NET. If it were me I would be looking at changing the length of the file - try SetLength on the filestream. Flush and close. Since you have the data in the stream converted to a string VB.NET tutorial-Learn VB.NET String Manipulation with with Remove and Insert Functions to remove characters or insert characters to a text string.