Free Image Hosting:http://image-host.developers-heaven.netShare your images free!!!
var str=" some string ";str = str.replace(/^\s+|\s+$/g,"");