Updated string_practice.rb based on feedback