Java rewrite engine2

Fixing string2Base or base2String