perl CGI (3)
Visual Basic (1)
Trim blank space at the beginning and end of a string
2 comments. Current rating: (1 votes). Leave comments and/ or rate it.
Question:How do I strip blank space from the beginning/end of a string? In other language this is usually called Trim().
Answer:The best solution is doing it in two steps (faster than the typical first attempt to do it with one statement.