change to return, #each_char instead of #split