Caesar cypher with optional shift on Ruby