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

Uses MDN polyfill to comply with ES3.
I thought about it, but didn't do =(