refactor caesar shift method