Added String.prototype.format as suggested by @soerenr
Returning early on errors everywhere now