added checking for java object strings