Program now converts line into char array