added substring.rb