moved useful methods from Generator to separate extended Str class
moved useful methods from Generator to separate extended Str class

rafis/ClosureTable,EspadaV8/ClosureTable,franzose/ClosureTable,ramirezd42/ClosureTable