I am working on a ShiftCipher program, and i'm looking to convert a string sentence (" This is an example") to chars, to i can shift the sentence over 2 letters. Input: "THIS IS AN EXAMPLE" output:"VJKU KU CP GZCORNG"
with the spaces intact. But i'm not sure how I can convert it to a char, shift the text and then convert it back into a char.