Rename translate transChar and use it throughout. Remove unused functions.