added substrings.rb