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

Just a simple fix of the missing code blocks.