Fixed deprecated code
Limited lowercase alphabets in simple substitution