Fix bugs in CaesarCipher