Resolves #3 - native trim is implemented by most major browsers at this point. Sorry it took me so long to get around to this!