Caesar cipher

Caesar cipher - I still wonder whether I should just use one method. I thought that if there were two methods rather than a single one it would be 'better'. Ended up with repeating some lines of code :cry: