Solved

Trim a space from a string

Posted on 2002-03-21
2
191 Views
Last Modified: 2010-04-01
I'm looking for the best way to trim a spaces from a variable.  Like Trim()!
0
Comment
Question by:khagen
  • 2
2 Comments
 
LVL 33

Expert Comment

by:knightEknight
ID: 6886125
String str = "  hi  there   ";
String str2 = str.trim();
0
 
LVL 33

Accepted Solution

by:
knightEknight earned 20 total points
ID: 6886129
or,

<%=str.trim()%>
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

After-hours service is a fact of life for most MSPs. While not the most pleasant aspect of the job, there are ways to make after-hours servicing a more profitable and organized enterprise.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question