Fix String element reference for ruby 1.8