edited string.rb

added methods
str.capitalize
str.hash
Merge branch 'master' of https://github.com/htw-imi-info3/rubylearning