Added R.trim method and simple test. Closes #401

Uses MDN polyfill to comply with ES3.
of course, that was dumb of me