updated string_practice.rb to passing all test