refactor caesar_cipher