solution on right track, need to create substrings next