Changing Base 36 functionality to Java Standard