PLAT-6882 - version correction java docs and variable name

Error messages telling you that "str" should not be empty were not helpful