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

Uses MDN polyfill to comply with ES3.
should include a test to show that the input string is not mutated. but will pull as is for now