Make changes pointed out by Hound-ci
Make changes pointed out by Hound-ci

Hound-ci flagged out line 27 in src/String.js was too long.
I had to cut out and refactor the code to meet the
suggestions made by Hound-ci.

andela-oolutola/string-class,andela-oolutola/string-class