ruby: use String#chars and/or #each_chars instead of #split()