String deleting

If you insist on pissing away resources using the String class, YOU need to RTFM, and discover there there is a method to trim() stuff.