improve string/repeat performance

based on: http://stackoverflow.com/questions/202605/repeat-string-javascript
Performance tests: http://jsfiddle.net/disfated/GejWV/

closes #164