Added a substring method

Check the docs