Minor fix for encrypt and decrypt string