adapted StringIds java class behaviour to new stringids.js