Create substrings method
Create tests for substrings