Typescript Check String Empty In Java