* Fixing a bug with incorrect function being called.
* Adding a default
* Trim the url so we dont have "/" at front or end of url