added titleize method to string.rb

Not sure if you guys are interested, but here's the titleize method done the way rails does it.