added couple extra methods
(inspired by http://www.discoded.com/2012/04/05/my-favorite-javascript-string-extensions-in-coffeescript/)