Updated translate method to account for capital letters