Change in logic

Change how the translate function compares equality of characters.