Fixed the string() code literal in the java client index api.

Just a simple fix of the missing code blocks.