Brushwood
Sunday, 8 September 2013
Removing whitespaces from a string
Removing whitespaces from a string
Suppose I have a string like this:
string=" this is a string "
What is the simplest way to remove duplicated whitespaces and get the
following string:
string="this is a string"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment