Fix string operation

Fix string operation for custom java extensions