scala code update for caeser cipher