Removed maketrans and replaced with a more standardized way of doing it.