apply trick from perl to ruby
change internal representation of word to string