finished substrings.rb