Decryption of Substitution Ciphers