Moved a helper method from RubyString to StringSupport.