Change method for range String object to 'each_line'