used .each_char instead of .split('').each