You can get rid of the next line and just return `encrypted_value.chomp`. No need for doing it in place, though you can if you want to.